package com.forezp.thinking.chapter19;

import com.sun.deploy.util.DeploySysAction;
import com.sun.prism.GraphicsPipeline;

/**
 * Created by forezp on 2017/12/7.
 */
public enum Shadow {

    SHADOW1, SHADOW2, SHADOW3;

    public static void main(String[] args) {
        for (Shadow s : Shadow.values()) {
            System.out.println(s.ordinal());
            System.out.println(s.name());
            System.out.println(s == SHADOW1);
            System.out.println(s.equals(SHADOW1));

        }

        Class clz = Shadow.class.getSuperclass();
        System.out.println(clz.getSimpleName());
    }
}
